package com.dzl.supplier.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.brand.pojo.WelfareBrand;
import com.dzl.supplier.pojo.WelfareSupplier;
import com.dzl.supplier.pojo.WelfareSupplierBrand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 供应商品牌关联表(WelfareSupplierBrand)表数据库访问层
 * @author wangjian
 * @date 2021-07-12 10:46:34
 */
@Repository
public interface WelfareSupplierBrandMapper extends BaseMapper<WelfareSupplierBrand> {


    /**
     * 根据品牌id，查询供应商信息
     * @param brandId 品牌id
     * @date 2021/12/20 10:07
     * @author liuguanjun
     */
    List<WelfareSupplier> selectSupplierListByBrandIdAndEnterpriseId(@Param("brandId") Integer brandId,@Param("enterpriseId") Integer enterpriseId);

    /**
     * 根据供应商id，查询品牌信息
     * @param supplierId 供应商id
     * @date 2021/12/20 10:06
     * @author liuguanjun
     */
    List<WelfareBrand> selectBrandListBySupplierId(@Param("supplierId") Integer supplierId);

}